#ifndef LISTENER_HPP_INCLUDED
#define LISTENER_HPP_INCLUDED

#include <string>
using std::string;
class Image;
class Model;

class Listener
{
public:
    Listener(string _name);

    virtual ~Listener(){}
    
    virtual string GetName();

	//为c++单独增加的函数，用于删除时查找观察者。
	
	virtual void Update(Image& image) = 0;
	//virtual void Update(Model* model){};
	virtual void DoEvents(int s){}

protected:
    string m_name;

};
#endif // LISTENER_HPP_INCLUDED
